package edu.ztr.mapper;

import edu.ztr.pojo.Actor;
import edu.ztr.pojo.Ele;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface SearchMapper {
//    @Select("SELECT * from searchtable")

    //    List<Ele> list();
    List<Ele> list(String content, LocalDate begin, LocalDate end);

    List<Ele> getMovie(String name);

    List<Actor> getActor(Integer id);

    List<String> getApi();

    int deleteMovie(Integer id);

    int updateData(Integer id, LocalDate time, String content, String href);


    int addData(Integer id, LocalDate time, String content, String href);

    @Select("select count(*) from searchtable where id = #{id}" )
    int idIn(Integer id);

    int deleteSearch(Integer id);
}
